import request from "@/utils/request.js";

export function wxLogin(data){
	 return request({
		 API_URL: '/users/login/wx_login',
		 data
	 })
}

export function login(data){
	return request({
		API_URL: '/users/login/login',
		data
	})
}

export function login_out(data){
	return request({
	    API_URL: '/users/login/login_out',
	    data
	});
}

export function get_code(data){
	return request({
		API_URL: '/users/Share/get_code',
		data
	})
}

export function register(data){
	return request({
		API_URL: '/users/login/register',
		data
	})
}

export function recharge(data){
	return request({
		API_URL: '/users/wallet/recharge',
		data
	})
}

export function add_post(data){
	return request({
		API_URL: '/users/personal/add_post',
		data
	})
}

export function get_xy(data){
	return request({
		API_URL: '/index/index/xx_xy',
		data
	})
}

export function retrieve_pwd(data){
	return request({
		API_URL: '/users/Share/retrieve_pwd',
		data
	})
}

export function get_location(data){
	return request({
		API_URL: '/users/Share/get_location',
		data
	})
}

export function all_market_search_user_goods(data){
	return request({
		API_URL: '/users/index/search_user_goods',
		data
	})
}


export function article_cate(data){
	return request({
		API_URL: '/infomarket/index/article_cate',
		data
	})
}

export function article_info(data){
	return request({
		API_URL: '/infomarket/index/article_info',
		data
	})
}

export function article_list(data){
	return request({
		API_URL: '/infomarket/index/article_list',
		data
	})
}

//关注
export function follow_action(data){
	return request({
		API_URL: '/users/personal/go_vip',
		data
	})
}

export function recommend(data){
	return request({
		API_URL: '/users/personal/recommend',
		data
	})
}


export function vip_list(data){
	return request({
		API_URL: '/users/personal/vip_list',
		data
	})
}

//个人帖子列表
export function users_post(data){
	return request({
		API_URL: '/users/index/users_post',
		data
	})
}

export function infomarket_ad_list(data){
	return request({
		API_URL: '/infomarket/index/ad_list',
		data
	})
}

//奖品列表
export function prize_list(data){
    return request({
        API_URL: '/users/index/prize_list',
        data
    })
}

//生成指定页面的小程序码
export function wxa(data){
    return request({
        API_URL: '/users/upload/wxa',
        data
    })
}

//文件上传
export function file_upload(data){
    return request({
        API_URL: '/users/personal/file_upload',
        data
    })
}

export function file_list(data){
    return request({
        API_URL: '/users/personal/file_list',
        data
    })
}

export function file_del(data){
    return request({
        API_URL: '/users/personal/file_del',
        data
    })
}

export function file_cate(data){
    return request({
        API_URL: '/users/personal/file_cate',
        data
    })
}

export function file_status(data){
    return request({
        API_URL: '/users/personal/file_status',
        data
    })
}

//素材广场列表
export function file_list_square(data){
    return request({
        API_URL: '/users/index/file_list',
        data
    })
}

export function file_cate_change(data){
    return request({
        API_URL: '/users/personal/file_cate_change',
        data
    })
}

export function set_share(data){
    return request({
        API_URL: '/users/personal/set_share',
        data
    })
}

export function set_share_u(data){
    return request({
        API_URL: '/users/personal/set_share_u',
        data
    })
}
export function journal_list(data){
    return request({
        API_URL: '/users/index/journal_list',
        data
    })
}

export function journal_info(data){
    return request({
        API_URL: '/users/index/journal_info',
        data
    })
}

export function article_cate_public(data){
    return request({
        API_URL: '/users/shop/article_cate',
        data
    })
}

export function merchants_join(data){
    return request({
        API_URL: '/users/shop/merchants_join',
        data
    })
}

export function pindan_list(data){
    return request({
        API_URL: '/users/index/pindan_list',
        data
    })
}

export function activity_list(data){
    return request({
        API_URL: '/users/index/activity_list',
        data
    })
}

export function activity_cate_list(data){
    return request({
        API_URL: '/users/index/activity_cate_list',
        data
    })
}

export function activity_info(data){
	return request({
		API_URL: '/users/index/activity_info',
		data
	})
}

export function activity_entry(data){
	return request({
		API_URL: '/users/index/activity_entry',
		data
	})
}

export function activity_submit(data){
	return request({
		API_URL: '/epay/api/activity_submit',
		data
	})
}

export function activity_like(data){
	return request({
		API_URL: '/users/index/activity_like',
		data
	})
}

export function activity_entry_list(data){
	return request({
		API_URL: '/users/index/activity_entry_list',
		data
	})
}

export function merchants_set(data){
	return request({
		API_URL: '/users/shop/merchants_set',
		data
	})
}

export function apply_supplier(data){
	return request({
		API_URL: '/users/personal/apply_supplier',
		data
	})
}

export function apply_supplier_info(data){
	return request({
		API_URL: '/users/personal/apply_supplier_info',
		data
	})
}

export function post_collect(data){
	return request({
		API_URL: '/users/personal/post_collect',
		data
	})
}

export function post_collect_list(data){
	return request({
		API_URL: '/users/personal/post_collect_list',
		data
	})
}

export function supplier_article_like(data){
	return request({
		API_URL: '/users/index/supplier_article_like',
		data
	})
}

export function supplier_article_reply_list(data){
	return request({
		API_URL: '/users/index/supplier_article_reply_list',
		data
	})
}

export function supplier_article_reply(data){
	return request({
		API_URL: '/users/index/supplier_article_reply',
		data
	})
}

export function del_supplier_article_reply(data){
	return request({
		API_URL: '/users/personal/del_supplier_article_reply',
		data
	})
}

export function add_comment(data){
	return request({
		API_URL: '/users/personal/add_comment',
		data
	})
}

export function goods_pin_list(data){
	return request({
		API_URL: '/users/goods/goods_pin_list',
		data
	})
}

export function add_goods_pin(data){
	return request({
		API_URL: '/users/personal/add_goods_pin',
		data
	})
}

export function goods_pin_active(data){
	return request({
		API_URL: '/users/goods/goods_pin_active',
		data
	})
}

export function post_like_list(data){
	return request({
		API_URL: '/users/personal/post_like_list',
		data
	})
}

export function apply_head(data){
	return request({
		API_URL: '/users/personal/apply_head',
		data
	})
}

export function users_shop_list(data){
    return request({
        API_URL: '/users/shop/users_shop_list',
        data
    })
}

export function goods_type(data){
    return request({
        API_URL: '/users/user_shop/goods_type',
        data
    })
}

export function set_goods_type_value(data){
    return request({
        API_URL: '/users/user_shop/set_goods_type_value',
        data
    })
}

export function get_goods_type_value(data){
    return request({
        API_URL: '/users/user_shop/get_goods_type_value',
        data
    })
}

export function set_goods_attr_price(data){
    return request({
        API_URL: '/users/user_shop/set_goods_attr_price',
        data
    })
}

export function get_goods_attr_price(data){
    return request({
        API_URL: '/users/user_shop/get_goods_attr_price',
        data
    })
}

export function add_goods_type_value(data){
    return request({
        API_URL: '/users/user_shop/add_goods_type_value',
        data
    })
}

export function cate_add_edit(data){
    return request({
        API_URL: '/users/user_shop/cate_add_edit',
        data
    })
}

export function cate_del(data){
    return request({
        API_URL: '/users/user_shop/cate_del',
        data
    })
}

export function goods_cate(data){
    return request({
        API_URL: '/users/user_shop/goods_cate',
        data
    })
}

export function cate_info(data){
    return request({
        API_URL: '/users/user_shop/cate_info',
        data
    })
}

export function dianpu_apply(data){
    return request({
        API_URL: '/users/user_shop/dianpu_apply',
        data
    })
}

export function dianpu_apply_list(data){
    return request({
        API_URL: '/users/user_shop/dianpu_apply_list',
        data
    })
}